package com.xc.c1

object T4 {

  def main(args: Array[String]): Unit = {
    (0 to 10).foreach(println)


    var res = 1l;
    "hello".foreach(res *= _.toLong)
    println("res = " + res)

  }


  class c1{
    private var name:String = "xx"
    var name2:String = "cc"
  }

  object cc1 extends c1{
    def z1: Unit ={
      val x = new c1
      x.name2
    }
  }
}
